beb8909c8e2926c7090501bab135cc07835634ea,src/me/ryanhamshire/griefprevention/command/CommandClaimFlagGroup.java,CommandClaimFlagGroup,execute,#CommandSource#CommandContext#,60

Before Change


        String flag = ctx.<String>getOne("flag").orElse(null);
        String source = ctx.<String>getOne("source").orElse(null);
        // Workaround command API issue not handling onlyOne arguments with sequences properly
        List<String> targetValues = new ArrayList<>(ctx.<String>getAll("target"));
        String target = null;
        if (!targetValues.isEmpty()) {
            if (targetValues.size() > 1) {
                //source = "any";
                target = targetValues.get(1);
            } else {
                target = targetValues.get(0);
            }
        }
        Tristate value = ctx.<Tristate>getOne("value").orElse(null);

After Change


        String group = ctx.<String>getOne("group").get();
        String flag = ctx.<String>getOne("flag").orElse(null);
        String source = ctx.<String>getOne("source").orElse(null);
        String target = ctx.<String>getOne("target").orElse(null);
        if (source != null && source.equalsIgnoreCase(target)) {
            source = null;
        }